<?php
/**
 * @package WordPress
 * @subpackage Starkers
 */
?>

<!-- AddThis Button BEGIN 
<div class="addthis_toolbox addthis_default_style" style="margin-top: 8px; padding: 6px 0 4px 22px; background-color: #f5f2ea; border-top: 1px solid rgb(220, 220, 220); border-bottom: 1px solid rgb(220, 220, 220);">
<a href="http://www.addthis.com/bookmark.php?v=250&amp;username=xa-4c7b20ae2aea1b2b" class="addthis_button_compact">Share</a>
<span class="addthis_separator">|</span>
<a class="addthis_button_facebook"></a>
<a class="addthis_button_myspace"></a>
<a class="addthis_button_google"></a>
<a class="addthis_button_twitter"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4c7b20ae2aea1b2b"></script>
AddThis Button END -->
</div><!-- wrapper -->
</div><!-- main -->

<div id="footer">
<div class="wrapper">
<ul class="copyright">
<li class="footLogo">
<?php
$my_id = 31;
$post = get_post($my_id); 
$content = $post->post_content;
echo $content
?>
</li>
<?php
$my_id = 41;
$post_id_7 = get_post($my_id); 
$content = $post_id_7->post_content;
echo $content
?>

<?php 
// use wp_list_pages to display parent and all child pages all generations (a tree with parent)
$args=array(
	'sort_column' => 'menu_order',
	'meta_key' => 'quick-link',
	'meta_value' => 'footer',
);
$pages = get_pages($args);  

  
  foreach ($pages as $page) {
    $pageid = $page->ID;
	$title = $page->post_title;
	$link = get_page_link($pageid); 
	 ?>
    
	<li><a href="<?php echo $link ?>"><?php echo $title ?></a></li>
	
<?php } ?>

<?php query_posts('category_name=Copyright'); ?>
<?php while (have_posts()) : the_post(); ?>
        <li><a href="<?php the_permalink(); ?>">
          <?php the_title(); ?>
          </a></li>
<?php endwhile; ?>
</ul>
<div class="copyright">
<?php wp_nav_menu( array('container_class' => 'footer-menu-1', 'menu' => 'Footer' )); ?>
<?php //wp_nav_menu( array('container_class' => 'footer-menu-2', 'menu' => 'China Immersion' )); ?>
<?php //wp_nav_menu( array('container_class' => 'footer-menu-3', 'menu' => 'Curriculum and Methodology' )); ?>
<?php //wp_nav_menu( array('container_class' => 'footer-menu-4', 'menu' => 'Courses' )); ?>
<?php //wp_nav_menu( array('container_class' => 'footer-menu-5', 'menu' => 'Individual Programs' )); ?>
<div class="clear"></div>
</div>
<div class="clear"></div>


		
		<?php wp_footer(); ?>
</div>
</div><!-- footer -->


	<script type="text/javascript">
	
	$(function() {
		$("#navigation > li:last-child > a").css("width", "74px");
	});
	
	$("#s")
    .val("Enter Keywords")
    .focus(function(){
        if ($(this).val() == "Enter Keywords") {
            $(this).val("");
        }
    })
    .blur(function(){
        if ($(this).val() == "") {
            $(this).val("Enter Keywords");
        }
    });
	</script>

</body>

</html>